#ifndef MARKDOWN_EDITER2_H
#define MARKDOWN_EDITER2_H
#include <QWebEngineView>
#include <QPlainTextEdit>
#include <QWebChannel>
#include "edit_base.h"
#include "markdownediter2/jscontext.h"
#include "markdownediter2/mqwbenginepage.h"
class markdown_editer2:public EditBaseWidget
{
public:
    markdown_editer2(QString FilePath, QWidget* parent);
protected:
    virtual void init_extra_member_val(); //重写自有变量初始化
    virtual void resize_editer(int w, int h); //重写缩放事件
    virtual void InitUiStyle();// 重写初始布局
    virtual void file_edited(); //重写编辑状态响应
private:
    QWebEngineView* pre_area;
    JsContext* jsconn;
    QWebChannel* channel;
    /*Document* doc;
    PreviewPage* pre;*/

};

#endif // MARKDOWN_EDITER2_H
